﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using Bussiness;

namespace GUI
{
    public partial class frmBaoCaoTon : Form
    {
        //private List<SachDTO> _sachList;
        //private List<HoaDonBanSachDTO> _hoaDonBanSachList;
        //private List<PhieuNhapDTO> _phieuNhapList;

        public frmBaoCaoTon()
        {
            InitializeComponent();
        }

        private void frmBaoCaoTon_Load(object sender, EventArgs e)
        {
            int[] thang = new int[12];
            for (int i = 0; i < thang.Length; i++)
            {
                thang[i] = i + 1;
            }
            cbxThang.DataSource = thang;                        
        }

        private void btnLuu_Click(object sender, EventArgs e)
        {
            frmRptBCTon rpt = new frmRptBCTon();
            rpt.Month = this.cbxThang.SelectedIndex + 1;
            rpt.Year = Convert.ToInt32(this.tbxNam.Text);

            rpt.Show();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
